<template>
  <div>
    <div class="hotMdd">
      <div class="hotImg">
        <img :src="xI.url" />
      </div>
      <div class="hotMdd_con">
        <van-swipe :loop="false" :width="335">
          <van-swipe-item
            class="my-swipe"
            v-for="(item, index) in xC"
            :key="index"
            ><a :href="item.url"><img :src="item.img.url" /></a
          ></van-swipe-item>
        </van-swipe>
      </div>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from "vue";
defineProps(["xI", "xC"]);
</script>

<style scoped>
.hotImg {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0.3rem;
}
.hotImg img {
  width: 100%;
  display: block;
}
.hotMdd_con {
  width: 100%;
  height: 6.32rem;
  padding-top: 0.35rem;
}
.hotMdd_con img {
  width: 6.32rem;
  height: 6.32rem;
  display: block;
  margin-left: 0.3rem;
}
</style>
